﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.Utils;

namespace NursingFormSystem
{
    public partial class SetEduTime : Form
    {
        public SetEduTime()
        {
            InitializeComponent();
        }
        public string time = string.Empty;
        public string Time
        {
            get { return time; }
            set { time = value; }
        }
        private void SetEduTime_Load(object sender, EventArgs e)
        {
            dateEdit1.Properties.VistaEditTime = DefaultBoolean.True;  //加钟
            dateEdit1.Text = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm");
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            time = dateEdit1.Text;
            DialogResult = System.Windows.Forms.DialogResult.OK;
            Close();
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            time = dateEdit1.Text;
            DialogResult = System.Windows.Forms.DialogResult.Cancel;
            Close();
        }
    }
}